home *** CD-ROM | disk | FTP | other *** search
/ Visual Basic Toolbox / Visual Basic Toolbox (P.I.E.)(1996).ISO / forms / frmwiz / rdblib / test.frm (.txt) < prev   
Encoding:
Visual Basic Form  |  1994-04-16  |  13.7 KB  |  344 lines

  1. Form1
  2. (Royce D. Bacon (RDB) Common Library Demo
  3. wwwwwwwwwwwwwwp
  4. wwwwwwwwwwwwwwp
  5. Form15t
  6. SSPanel#
  7. PnlHelp
  8. SSPanel#
  9. Help message goes here
  10.     CMDialog1
  11. CommonDialog
  12. rberror.hlp%0
  13. BtnEject
  14.     SSCommand
  15. Print Page
  16. Press to print a page
  17. TxtDate
  18. 01/01/94
  19. Enter the date to be validated
  20. Txtprintwidth
  21. Enter the line width to use
  22. Txtfmtline
  23. !1Enter the beginning line for the text to print on
  24.     BtnFormat
  25.     SSCommand
  26. Format String
  27. 2Press to print the text in the specified line size
  28. Txtformatstring
  29. This String Will Be Formatted Into individual lines for printing.  This text should be long enough to create multiple lines on the printed output.
  30. ! Enter the string to be formatted
  31. Txtrjcol
  32. !&Enter the rightmost column to align on
  33. Txtrjformat
  34. ###,##0.00
  35. !8Enter the format string to use for formatting the number
  36. Btnrightjustify
  37.     SSCommand
  38. Right Jusitfy
  39. ,Press to format and right justify the number
  40. Txtrjnum
  41. ! Enter the number to be formatted
  42. ChkNewLine
  43. SSCheck
  44. Start a New Line
  45. +Check to start a new line after this string
  46. Txtctrline
  47. !0Enter the line number for the string to print on
  48.     BtnCenter
  49.     SSCommand
  50. Center String
  51. Press to center the string
  52. Txtctrstring
  53. This String Will Be Centered
  54. Enter the string to be centered
  55. TxtErrorNum
  56. !&Enter the error number to be generated
  57. Command3D2
  58.     SSCommand
  59. Press to terminate the program
  60. BtnGenError
  61.     SSCommand
  62. Generate Error
  63. APress to generate indicated error and demo error handling routine
  64. Label2
  65. RB_Validate_Date
  66. Label2
  67. RB_Text_Format
  68. Label2
  69. RB_Rjustify
  70. Label2
  71. RB_ErrorHandler
  72. Label2
  73.     RB_Center
  74. Label1
  75. Date To Be Validated
  76. Label1
  77. Print Line Width
  78. Label1
  79. Print Starting On Line
  80. Label1
  81. String To Be Formatted
  82. Label1
  83.     At Column
  84. Label1
  85. Format To Use
  86. Label1
  87. Number To Be Formatted
  88. Label1
  89. On Line
  90. Label1
  91. String To Be Centered
  92. Label1
  93. Error Number To Generate
  94. MnuFunc
  95. &Functions
  96.     MnuCenter
  97. &Center String
  98.     MnuGenErr
  99. Generate  &Error
  100.     MnuFormat
  101. &Format String
  102. MnuRightJustify
  103. &Right Justify Number
  104. Mnudash1
  105. MnuPrint
  106. &Print Page
  107. MnuHelp
  108. &Help
  109. MnuErrHelp
  110. &Help On Errors
  111. MnuAbout
  112. &About
  113. Command3D2_Click
  114. form17
  115. Command3D1_Click
  116. commanderrorV
  117. RB_ErrorHandler@
  118. Action
  119.     erraction
  120. database
  121. TxtErrorNum
  122. MB_ICONINFORMATION
  123. BtnCenter_click
  124. nline
  125. TxtCtrLine
  126. pcolL
  127.     RB_Centerp
  128.     TxtString
  129. TxtCtrStringK
  130. ChkNewLine5
  131. Value
  132. BtnRightJustify_ClickW
  133. RB_Rjustify
  134. Txtrjstring@
  135. TxtRJFormat
  136. TxtRJColZ
  137. BtnFormat_Click
  138. stringtoprint/
  139. RB_Text_Format
  140. Txtfmtstringl
  141. TxtPrintWidth
  142. printer
  143. CurrentXq
  144. TxtFmtLine
  145. CurrentY
  146. TxtDate_Change
  147. TxtDate_LostFocus
  148. RB_Validate_Date
  149. TxtDate
  150.     Form_Load
  151.     ScaleMode
  152. CHARl
  153. Txtctrline_Change
  154. Txtformtstring
  155. TxtFormatString
  156. TxtRJNumB
  157. newline
  158. cstring+
  159. fstring 
  160. rjformat
  161. datestring
  162. BtnEject_Click
  163. TxtErrorNum_Change
  164.     BackColor%
  165.     ForeColor
  166. WHITE
  167. SelStart
  168.     SelLength
  169. TxtErrorNum_GotFocusG
  170. TxtErrorNum_LostFocus"
  171. COLOR_GRAY
  172. BLACK4
  173. Txtctrstring_Change
  174. Txtctrsting
  175. Txtrjnum_Change\
  176. Txtrjnum_GotFocusu
  177. Txtctrstring_GotFocus
  178. Txtctrline_GotFocus
  179. Txtrjformat_Change
  180. Txtrjformat_GotFocus
  181. Txtrjcol_Change
  182. Txtrjcol_GotFocus
  183. Txtfmtline_Change&
  184. Txtfmtline_GotFocusQ
  185. Txtprintwidth_Changek
  186. Txtprintwidth_GotFocus
  187. Txtprintwidht
  188. Txtformatstring_Change
  189. Txtformatstring_GotFocus
  190. TxtDate_GotFocus
  191. Txtctrstring_LostFocus
  192. Txtctrline_LostFocus
  193. Txtrjnum_LostFocus
  194. Txtrjformat_LostFocus
  195. Txtrjcol_LostFocus*
  196. Txtfmtline_LostFocusE
  197. Txtprintwidth_LostFocus
  198. Txtformatstring_LostFocus[
  199. INCHES
  200.     ScaleLeft
  201. MnuCenter_Click
  202. MnuGenErr_ClickC
  203. BtnGenError_Click
  204. MnuFormat_Click
  205. MnuRightJustify_Click
  206. MnuPrint_Click0
  207. MnuErrHelp_Click
  208.     CMDialog1
  209. HelpCommandb
  210. HELP_INDEX
  211. MnuAbout_ClickM
  212. LogoFrmV
  213. MODAL
  214. LogoFormp
  215. rjnumk
  216. rb_systemname&    
  217. rb_version
  218. RB_GRAY
  219. BtnGenError_MouseMove
  220. Button
  221. Shiftg    
  222. ShowHelpt
  223. BtnGenErrorK
  224. PBtnS    
  225. Control
  226. PnlHelp
  227. Visible
  228. Caption
  229. HeightS
  230. Width
  231.     BtnCenter
  232. BtnCenter_MouseMove
  233. Btnrightjustify
  234. Btnrightjustify_MouseMove
  235.     BtnFormat
  236. BtnFormat_MouseMove
  237. Btneject
  238. BtnEject_MouseMoveK    
  239. Command3D2_MouseMove
  240. Command3d2
  241. nPnlTop
  242. nPnlLeft
  243. ChkNewLine_Click~    
  244. ChkNewLine_GotFocuso
  245. ChkNewLine_LostFocus
  246. BtnGenError_GotFocus
  247. BtnGenError_LostFocus
  248. BtnCenter_GotFocus
  249. BtnCenter_LostFocus
  250. Btnrightjustify_GotFocus-
  251. Btnrightjustify_LostFocusC
  252. BtnFormat_GotFocusZ
  253. BtnFormat_LostFocus
  254. BtnEject_GotFocus
  255. BtnEject_MouseDown
  256. BtnEject_LostFocus
  257. Command3D2_GotFocus
  258. Command3D2_LostFocus
  259. FldGotFocus
  260. PControl
  261. FldLostFocus
  262. BtnCenter_click
  263. BtnCenter_GotFocus
  264. BtnCenter_LostFocus
  265. BtnCenter_MouseMove
  266. BtnEject_Click
  267. BtnEject_GotFocus
  268. BtnEject_LostFocus
  269. BtnEject_MouseMove
  270. BtnFormat_Click
  271. BtnFormat_GotFocus
  272. BtnFormat_LostFocus
  273. BtnFormat_MouseMove
  274. BtnGenError_Click
  275. Error ignored
  276. RB_ErrorHandler Test
  277.  Example of call to RB_ErrorHandler routine 
  278. ErrTest
  279. commanderror
  280. BtnGenError_GotFocus
  281. BtnGenError_LostFocus
  282. BtnGenError_MouseMove
  283. BtnRightJustify_Click
  284. Btnrightjustify_GotFocus
  285. Btnrightjustify_LostFocus
  286. Btnrightjustify_MouseMove
  287. ChkNewLine_GotFocus
  288. ChkNewLine_LostFocus
  289. Command3D2_Click
  290. Command3D2_GotFocus
  291. Command3D2_LostFocus
  292. Command3D2_MouseMove
  293. FldGotFocus
  294. FldLostFocus
  295. Form_Load
  296. RDBLIB Demo
  297. MnuAbout_Click
  298. MnuCenter_Click
  299. MnuErrHelp_Click
  300. MnuFormat_Click
  301. MnuGenErr_Click
  302. MnuPrint_Click
  303. MnuRightJustify_Click
  304. ShowHelp
  305.  Subroutine to show popup help for a control
  306.  To use:
  307.  add a panel control called PnlHelp to the form=
  308.  Set control's tag property to help message desiredt
  309.  Copy this subroutine to the form code and uncomment code belown
  310.  In mousemove event of control add
  311.  ShowHelp control-name, x, y
  312.  In click event or other events of control that cause action add
  313.  ShowHelp control-name, 0, 0
  314.  ' Hides helpt
  315.  Determine max x & y coordinates with 80 twip border
  316.  boundry of 80 twips allowed to be able to catch cursor as exiting control
  317.  if exiting control area turn off help panel
  318.  Determine location for help panel
  319.  Assume below and to right
  320.  Put panel above control if not enough room below 
  321.  Put panel to left if not enough room to right
  322.  if same settings exit to prevent flickering effectr
  323.  get help msg from control's tag and position help panel
  324. Txtctrline_GotFocus
  325. Txtctrline_LostFocus
  326. Txtctrstring_GotFocus
  327. Txtctrstring_LostFocus
  328. TxtDate_GotFocus
  329. TxtDate_LostFocus
  330. TxtErrorNum_GotFocus
  331. TxtErrorNum_LostFocus
  332. Txtfmtline_GotFocus
  333. Txtfmtline_LostFocus
  334. Txtformatstring_GotFocus
  335. Txtformatstring_LostFocus
  336. Txtprintwidth_GotFocus
  337. Txtprintwidth_LostFocus
  338. Txtrjcol_GotFocus
  339. Txtrjcol_LostFocus
  340. Txtrjformat_GotFocus
  341. Txtrjformat_LostFocus
  342. Txtrjnum_GotFocus
  343. Txtrjnum_LostFocus
  344.